package com.zhangpeng520.user.service;

import com.zhangpeng520.user.dao.UserMapper;
import com.zhangpeng520.user.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Administrator on 2017/8/7 0007.
 */


@Service("userServipml")
public class UserServipml implements UserService {

    @Autowired
    private UserMapper userMapper;


    public User finduser(String username)
    {
       User user=userMapper.selectByUsername(username);
       return user;
    }


}
